package com.hw.dao;

import com.hw.pojo.Categories;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @InterfaceName: CategoriesDao
 * @Description: 分类目录
 * @Author: vie0134
 * @Date: 2020-12-15 16:37
 * @Version: 1.0
 **/
@Repository
public interface CategoriesDao {
    List<Categories> findAllCategories(@Param("categoryname") String categoryname, @Param("status") String status);
    void addCategories(Categories categories);
    void updateCategories(Categories categories);
    Categories findCategoriesById(Integer id);
    void deleteCategoriesById(@Param("id") Integer id);
    void deleteCategoriesByIds(@Param("ids") List<String> ids);
}
